home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 83
/
MacAddict_083_2003-07.iso
/
mac
/
Software
/
Development
/
VLC Source 0.5.3.dmg
/
src
/
video_output
/
video_text.h
< prev
next >
Wrap
Text File
|
2002-06-01
|
2KB
|
46 lines
/*****************************************************************************
* video_text.h : text manipulation functions
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_text.h,v 1.8 2002/06/01 12:32:02 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
/* Text styles - these are primary text styles, used by the vout_Print function.
* They may be ignored or interpreted by higher level functions */
#define WIDE_TEXT 1<<0 /* interspacing is doubled */
#define ITALIC_TEXT 1<<1 /* italic */
#define OPAQUE_TEXT 1<<2 /* text with background */
#define OUTLINED_TEXT 1<<3 /* border around letters */
#define VOID_TEXT 1<<4 /* no foreground */
/*****************************************************************************
* Prototypes
*****************************************************************************/
vout_font_t * vout_LoadFont ( vout_thread_t *, const char *psz_name );
void vout_UnloadFont ( vout_font_t * );
void vout_TextSize ( vout_font_t *p_font, int i_style,
const char *psz_text,
int *pi_width, int *pi_height );
void vout_Print ( vout_font_t *p_font, byte_t *p_pic,
int i_bytes_per_pixel, int i_bytes_per_line,
u32, u32, u32, int, const char *, int );